import request from '@/utils/request.js'

// 提供调用获取土壤电导率数据接口的函数
export const getConductivityDataService = () => {
    return request.get('/Sensor/getConductivity');
}

// 提供调用获取土壤氮含量数据接口的函数
export const getNitrogenDataService = () => {
    return request.get('/Sensor/getNitrogen');
}

// 提供调用获取土壤温度数据接口的函数
export const getTemperatureDataService = () => {
    return request.get('/Sensor/getTemperature');
}

// 提供调用获取土壤含水率数据接口的函数
export const getMoistureDataService = () => {
    return request.get('/Sensor/getMoisture');
}

// 提供调用获取土壤PH值数据接口的函数
export const getPHDataService = () => {
    return request.get('/Sensor/getpH');
}
//提供获取设备信息接口的函数
export const getDevicessService = () => {
    return request.get('/device/getdevices');
}
//提供获取图片接口的函数
export const getPicyureService = () => {
    return request.get('/device/getpictures');
}
//提供获取视频接口的函数
export const getVideoService = () => {
    return request.get('/device/getcamerainfo');
}